package syn.app.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import syn.app.service.RedisService;
import syn.app.service.UserService;


/**
 * Created by Administrator on 2018\3\11 0011.
 */
@RestController
@RequestMapping("user")
public class UserContorller {
    @Autowired
    private UserService userService;
    @Autowired
    private RedisService redisService ;
    @RequestMapping("/findUser")
    @ResponseBody
    public String findUser(String key,String value ){
        String name="lisi";
        redisService.putKV(key,value);
        System.out.println(redisService.getV(key));
        return redisService.getV(key).toString();
    }
}
